package com.geline.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author: mengxin
 * @date: 2024/1/16 14:48
 */
//@SQLFieldUniqueKey(uniqueKey = "id")
@TableName(value = "sp_excel_file")
@Data
public class ExcelFile {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /* 文件名称 */
    @Length(max = 200, message="filename长度必须<=200")
    @TableField(value = "filename")
    private String filename;

    /* 文件流 */
    @TableField(value = "bytes")
    private byte[] bytes;

    /* 单元格错误信息 */
    @TableField(value = "error_info")
    private String errorInfo;
}
